package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息日志对象 msg_log
 *
 * @author ruoyi
 * @date 2024-04-01
 */
public class MsgLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 消息标题 */
    @Excel(name = "消息标题")
    private String msgTitile;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String msgContent;

    /** 推送方式（0：站内1：短信 ） */
    @Excel(name = "推送方式", readConverterExp = "0=：站内1：短信")
    private String sendType;

    /** 状态（0：发送成功 1：发送失败） */
    @Excel(name = "状态", readConverterExp = "0=：发送成功,1=：发送失败")
    private String status;

    /** 接收人 */
    @Excel(name = "接收人")
    private String receiver;

    /** 是否已读（0:未读 1:已读） */
    @Excel(name = "是否已读", readConverterExp = "0=:未读,1=:已读")
    private String isView;

    /** 删除标志（0删除 1存在） */
    private String delFlag;


    /**
     *  分页页数
     */
    private Integer pageNum;

    /**
     *  分页条数
     */
    private Integer pageSize;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setMsgTitile(String msgTitile)
    {
        this.msgTitile = msgTitile;
    }

    public String getMsgTitile()
    {
        return msgTitile;
    }
    public void setMsgContent(String msgContent)
    {
        this.msgContent = msgContent;
    }

    public String getMsgContent()
    {
        return msgContent;
    }
    public void setSendType(String sendType)
    {
        this.sendType = sendType;
    }

    public String getSendType()
    {
        return sendType;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setReceiver(String receiver)
    {
        this.receiver = receiver;
    }

    public String getReceiver()
    {
        return receiver;
    }
    public void setIsView(String isView)
    {
        this.isView = isView;
    }

    public String getIsView()
    {
        return isView;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("msgTitile", getMsgTitile())
            .append("msgContent", getMsgContent())
            .append("sendType", getSendType())
            .append("status", getStatus())
            .append("receiver", getReceiver())
            .append("isView", getIsView())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
